package com.hui.feign;

import com.hui.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 李昭辉
 * @Date: 2021/09/17/9:20
 * @Description:
 */
@FeignClient(name = "hui-service-goods",fallback = GoodsFeignFallback.class)
public interface GoodsFeign {

    @GetMapping("goods/getGoods/{id}")
    Goods getGoods(@PathVariable Integer id);


    @GetMapping("goods/port")
    String getPort();
}
